Optimal. Leaf size=336 \[ 4 a^3 c^3 \text{PolyLog}\left (3,-1+\frac{2}{1-i a x}\right )+4 a^3 c^3 \text{PolyLog}\left (3,1-\frac{2}{1+i a x}\right )-8 i a^3 c^3 \tan ^{-1}(a x) \text{PolyLog}\left (2,-1+\frac{2}{1-i a x}\right )+8 i a^3 c^3 \tan ^{-1}(a x) \text{PolyLog}\left (2,1-\frac{2}{1+i a x}\right )-a^3 c^3 \log \left (a^2 x^2+1\right )+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2+a^3 c^3 \log (x)+3 a^4 c^3 x \tan ^{-1}(a x)^3+a^4 c^3 x \tan ^{-1}(a x)-a^3 c^3 \tan ^{-1}(a x)^2-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}-\frac{a^2 c^3 \tan ^{-1}(a x)}{x}+8 a^3 c^3 \log \left (\frac{2}{1+i a x}\right ) \tan ^{-1}(a x)^2+8 a^3 c^3 \log \left (2-\frac{2}{1-i a x}\right ) \tan ^{-1}(a x)^2-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.10857, antiderivative size = 336, normalized size of antiderivative = 1., number of steps used = 37, number of rules used = 18, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.818, Rules used = {4948, 4846, 4920, 4854, 4884, 4994, 6610, 4852, 4918, 266, 36, 29, 31, 4924, 4868, 4992, 4916, 260} \[ 4 a^3 c^3 \text{PolyLog}\left (3,-1+\frac{2}{1-i a x}\right )+4 a^3 c^3 \text{PolyLog}\left (3,1-\frac{2}{1+i a x}\right )-8 i a^3 c^3 \tan ^{-1}(a x) \text{PolyLog}\left (2,-1+\frac{2}{1-i a x}\right )+8 i a^3 c^3 \tan ^{-1}(a x) \text{PolyLog}\left (2,1-\frac{2}{1+i a x}\right )-a^3 c^3 \log \left (a^2 x^2+1\right )+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2+a^3 c^3 \log (x)+3 a^4 c^3 x \tan ^{-1}(a x)^3+a^4 c^3 x \tan ^{-1}(a x)-a^3 c^3 \tan ^{-1}(a x)^2-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}-\frac{a^2 c^3 \tan ^{-1}(a x)}{x}+8 a^3 c^3 \log \left (\frac{2}{1+i a x}\right ) \tan ^{-1}(a x)^2+8 a^3 c^3 \log \left (2-\frac{2}{1-i a x}\right ) \tan ^{-1}(a x)^2-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4948
Rule 4846
Rule 4920
Rule 4854
Rule 4884
Rule 4994
Rule 6610
Rule 4852
Rule 4918
Rule 266
Rule 36
Rule 29
Rule 31
Rule 4924
Rule 4868
Rule 4992
Rule 4916
Rule 260
Rubi steps
\begin{align*} \int \frac{\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)^3}{x^4} \, dx &=\int \left (3 a^4 c^3 \tan ^{-1}(a x)^3+\frac{c^3 \tan ^{-1}(a x)^3}{x^4}+\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x^2}+a^6 c^3 x^2 \tan ^{-1}(a x)^3\right ) \, dx\\ &=c^3 \int \frac{\tan ^{-1}(a x)^3}{x^4} \, dx+\left (3 a^2 c^3\right ) \int \frac{\tan ^{-1}(a x)^3}{x^2} \, dx+\left (3 a^4 c^3\right ) \int \tan ^{-1}(a x)^3 \, dx+\left (a^6 c^3\right ) \int x^2 \tan ^{-1}(a x)^3 \, dx\\ &=-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+\left (a c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{x^3 \left (1+a^2 x^2\right )} \, dx+\left (9 a^3 c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{x \left (1+a^2 x^2\right )} \, dx-\left (9 a^5 c^3\right ) \int \frac{x \tan ^{-1}(a x)^2}{1+a^2 x^2} \, dx-\left (a^7 c^3\right ) \int \frac{x^3 \tan ^{-1}(a x)^2}{1+a^2 x^2} \, dx\\ &=-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+\left (a c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{x^3} \, dx+\left (9 i a^3 c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{x (i+a x)} \, dx-\left (a^3 c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{x \left (1+a^2 x^2\right )} \, dx+\left (9 a^4 c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{i-a x} \, dx-\left (a^5 c^3\right ) \int x \tan ^{-1}(a x)^2 \, dx+\left (a^5 c^3\right ) \int \frac{x \tan ^{-1}(a x)^2}{1+a^2 x^2} \, dx\\ &=-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+9 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (\frac{2}{1+i a x}\right )+9 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (2-\frac{2}{1-i a x}\right )+\left (a^2 c^3\right ) \int \frac{\tan ^{-1}(a x)}{x^2 \left (1+a^2 x^2\right )} \, dx-\left (i a^3 c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{x (i+a x)} \, dx-\left (a^4 c^3\right ) \int \frac{\tan ^{-1}(a x)^2}{i-a x} \, dx-\left (18 a^4 c^3\right ) \int \frac{\tan ^{-1}(a x) \log \left (\frac{2}{1+i a x}\right )}{1+a^2 x^2} \, dx-\left (18 a^4 c^3\right ) \int \frac{\tan ^{-1}(a x) \log \left (2-\frac{2}{1-i a x}\right )}{1+a^2 x^2} \, dx+\left (a^6 c^3\right ) \int \frac{x^2 \tan ^{-1}(a x)}{1+a^2 x^2} \, dx\\ &=-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (\frac{2}{1+i a x}\right )+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (2-\frac{2}{1-i a x}\right )-9 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-i a x}\right )+9 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+i a x}\right )+\left (a^2 c^3\right ) \int \frac{\tan ^{-1}(a x)}{x^2} \, dx+\left (9 i a^4 c^3\right ) \int \frac{\text{Li}_2\left (-1+\frac{2}{1-i a x}\right )}{1+a^2 x^2} \, dx-\left (9 i a^4 c^3\right ) \int \frac{\text{Li}_2\left (1-\frac{2}{1+i a x}\right )}{1+a^2 x^2} \, dx+\left (a^4 c^3\right ) \int \tan ^{-1}(a x) \, dx-2 \left (\left (a^4 c^3\right ) \int \frac{\tan ^{-1}(a x)}{1+a^2 x^2} \, dx\right )+\left (2 a^4 c^3\right ) \int \frac{\tan ^{-1}(a x) \log \left (\frac{2}{1+i a x}\right )}{1+a^2 x^2} \, dx+\left (2 a^4 c^3\right ) \int \frac{\tan ^{-1}(a x) \log \left (2-\frac{2}{1-i a x}\right )}{1+a^2 x^2} \, dx\\ &=-\frac{a^2 c^3 \tan ^{-1}(a x)}{x}+a^4 c^3 x \tan ^{-1}(a x)-a^3 c^3 \tan ^{-1}(a x)^2-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (\frac{2}{1+i a x}\right )+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (2-\frac{2}{1-i a x}\right )-8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-i a x}\right )+8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+i a x}\right )+\frac{9}{2} a^3 c^3 \text{Li}_3\left (-1+\frac{2}{1-i a x}\right )+\frac{9}{2} a^3 c^3 \text{Li}_3\left (1-\frac{2}{1+i a x}\right )+\left (a^3 c^3\right ) \int \frac{1}{x \left (1+a^2 x^2\right )} \, dx-\left (i a^4 c^3\right ) \int \frac{\text{Li}_2\left (-1+\frac{2}{1-i a x}\right )}{1+a^2 x^2} \, dx+\left (i a^4 c^3\right ) \int \frac{\text{Li}_2\left (1-\frac{2}{1+i a x}\right )}{1+a^2 x^2} \, dx-\left (a^5 c^3\right ) \int \frac{x}{1+a^2 x^2} \, dx\\ &=-\frac{a^2 c^3 \tan ^{-1}(a x)}{x}+a^4 c^3 x \tan ^{-1}(a x)-a^3 c^3 \tan ^{-1}(a x)^2-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (\frac{2}{1+i a x}\right )-\frac{1}{2} a^3 c^3 \log \left (1+a^2 x^2\right )+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (2-\frac{2}{1-i a x}\right )-8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-i a x}\right )+8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+i a x}\right )+4 a^3 c^3 \text{Li}_3\left (-1+\frac{2}{1-i a x}\right )+4 a^3 c^3 \text{Li}_3\left (1-\frac{2}{1+i a x}\right )+\frac{1}{2} \left (a^3 c^3\right ) \operatorname{Subst}\left (\int \frac{1}{x \left (1+a^2 x\right )} \, dx,x,x^2\right )\\ &=-\frac{a^2 c^3 \tan ^{-1}(a x)}{x}+a^4 c^3 x \tan ^{-1}(a x)-a^3 c^3 \tan ^{-1}(a x)^2-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (\frac{2}{1+i a x}\right )-\frac{1}{2} a^3 c^3 \log \left (1+a^2 x^2\right )+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (2-\frac{2}{1-i a x}\right )-8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-i a x}\right )+8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+i a x}\right )+4 a^3 c^3 \text{Li}_3\left (-1+\frac{2}{1-i a x}\right )+4 a^3 c^3 \text{Li}_3\left (1-\frac{2}{1+i a x}\right )+\frac{1}{2} \left (a^3 c^3\right ) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^2\right )-\frac{1}{2} \left (a^5 c^3\right ) \operatorname{Subst}\left (\int \frac{1}{1+a^2 x} \, dx,x,x^2\right )\\ &=-\frac{a^2 c^3 \tan ^{-1}(a x)}{x}+a^4 c^3 x \tan ^{-1}(a x)-a^3 c^3 \tan ^{-1}(a x)^2-\frac{a c^3 \tan ^{-1}(a x)^2}{2 x^2}-\frac{1}{2} a^5 c^3 x^2 \tan ^{-1}(a x)^2-\frac{c^3 \tan ^{-1}(a x)^3}{3 x^3}-\frac{3 a^2 c^3 \tan ^{-1}(a x)^3}{x}+3 a^4 c^3 x \tan ^{-1}(a x)^3+\frac{1}{3} a^6 c^3 x^3 \tan ^{-1}(a x)^3+a^3 c^3 \log (x)+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (\frac{2}{1+i a x}\right )-a^3 c^3 \log \left (1+a^2 x^2\right )+8 a^3 c^3 \tan ^{-1}(a x)^2 \log \left (2-\frac{2}{1-i a x}\right )-8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-i a x}\right )+8 i a^3 c^3 \tan ^{-1}(a x) \text{Li}_2\left (1-\frac{2}{1+i a x}\right )+4 a^3 c^3 \text{Li}_3\left (-1+\frac{2}{1-i a x}\right )+4 a^3 c^3 \text{Li}_3\left (1-\frac{2}{1+i a x}\right )\\ \end{align*}
Mathematica [A] time = 0.706, size = 331, normalized size = 0.99 \[ \frac{c^3 \left (48 i a^3 x^3 \tan ^{-1}(a x) \text{PolyLog}\left (2,e^{-2 i \tan ^{-1}(a x)}\right )-48 i a^3 x^3 \tan ^{-1}(a x) \text{PolyLog}\left (2,-e^{2 i \tan ^{-1}(a x)}\right )+24 a^3 x^3 \text{PolyLog}\left (3,e^{-2 i \tan ^{-1}(a x)}\right )+24 a^3 x^3 \text{PolyLog}\left (3,-e^{2 i \tan ^{-1}(a x)}\right )-2 i \pi ^3 a^3 x^3+6 a^3 x^3 \log \left (\frac{a x}{\sqrt{a^2 x^2+1}}\right )-3 a^3 x^3 \log \left (a^2 x^2+1\right )+2 a^6 x^6 \tan ^{-1}(a x)^3-3 a^5 x^5 \tan ^{-1}(a x)^2+18 a^4 x^4 \tan ^{-1}(a x)^3+6 a^4 x^4 \tan ^{-1}(a x)-6 a^3 x^3 \tan ^{-1}(a x)^2-18 a^2 x^2 \tan ^{-1}(a x)^3-6 a^2 x^2 \tan ^{-1}(a x)+48 a^3 x^3 \tan ^{-1}(a x)^2 \log \left (1-e^{-2 i \tan ^{-1}(a x)}\right )+48 a^3 x^3 \tan ^{-1}(a x)^2 \log \left (1+e^{2 i \tan ^{-1}(a x)}\right )-3 a x \tan ^{-1}(a x)^2-2 \tan ^{-1}(a x)^3\right )}{6 x^3} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 18.202, size = 7948, normalized size = 23.7 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (a^{6} c^{3} x^{6} + 3 \, a^{4} c^{3} x^{4} + 3 \, a^{2} c^{3} x^{2} + c^{3}\right )} \arctan \left (a x\right )^{3}}{x^{4}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} c^{3} \left (\int 3 a^{4} \operatorname{atan}^{3}{\left (a x \right )}\, dx + \int \frac{\operatorname{atan}^{3}{\left (a x \right )}}{x^{4}}\, dx + \int \frac{3 a^{2} \operatorname{atan}^{3}{\left (a x \right )}}{x^{2}}\, dx + \int a^{6} x^{2} \operatorname{atan}^{3}{\left (a x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a^{2} c x^{2} + c\right )}^{3} \arctan \left (a x\right )^{3}}{x^{4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]